package com.example.optimizaapp;

import java.util.ArrayList;
import java.util.Arrays;

import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.AdapterView.OnItemClickListener;
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
public class MainMenuActivity extends Activity {

	final String[] opciones = {"Buscar Incidente", "Buscar Cliente"};
	private ListView mainListView;
	private ArrayAdapter<String> listAdapter ;	
	
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.activity_main_menu);
	    setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
	    // TODO Auto-generated method stub
	   //This should be implemented as a table NOT WORKING 
	   //this.populateTable();
	}
	
	public void populateTable(){
			/*this.mainListView=(ListView) findViewById(R.id.listViewOpciones);
		    // Create and populate a List of clients.
		    ArrayList<String> listaClientes = new ArrayList<String>();
		    listaClientes.addAll(Arrays.asList(this.opciones));
		    // Create ArrayAdapter using the clients list.
		    listAdapter= new ArrayAdapter<String>(this, R.layout.simple_row, opciones);
		    this.mainListView.setAdapter(listAdapter);*/
	}
		

}
